class RolesController < ApplicationController
  
  layout 'layout'
  
  def index
    @roles = Role.find_all
  end
  
  def show
    @role = Role.find(params[:role_id], :include => :users)
  end
  
  def update
    @user = User.find(params[:id])
    @user.set_role(params[:role_id])
    session[:set_user_id] = @user.id 
  end
  

  
end
